package com.example.cart.repository.factory;

import androidx.annotation.NonNull;
import androidx.room.Database;
import androidx.room.DatabaseConfiguration;
import androidx.room.InvalidationTracker;
import androidx.room.RoomDatabase;
import androidx.sqlite.db.SupportSQLiteOpenHelper;

import com.example.cart.dto.Cart;
import com.example.cart.dto.Goods;
import com.example.cart.repository.CartDao;
import com.example.cart.repository.GoodsDao;

/**
 * 该数据库类用于定义实体和数据访问对象的列表。它也是底层连接的主要访问点。
 */
@Database(version = 3,entities = {
        Goods.class,
        Cart.class
},exportSchema = false)
public abstract class GoodsDataBase extends RoomDatabase {

    public abstract GoodsDao goodsDao();

    public abstract CartDao cartDao();
}
